<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title></title>



<link rel="stylesheet" type="text/css"
	href="__PUBLIC__/ueditor/themes/default/ueditor.css" />
<style>
.myEditor {
	width: 1024px;
}
</style>
<script type="text/javascript">
	    var editor = new baidu.editor.ui.Editor();
	    editor.render('editor');  //editor为编辑器容器的id
	    
	   	/*
	    editor.setContent("<p>"+
	    		  "sdfsdfsdaf</p>"+
	    		  "<p>"+
	    		    "11:38:37∑</p>");
	    editor.focus();
	    */

	</script>

<script type="text/javascript">
	    function demo(){
	    	alert(editor.getContent()) ;
			$.ajax( {
				url : "__URL__/returnAjax/content/"+editor.getContent(),
				dataType : "json",
				type : "post",
				success : function(res) {	
					alert(res.message) ;					
				},
	
				error : function() {
					
				}
			});
	    }
	</script>


</head>
<body>


<textarea id="editor" name="editor">
		
    </textarea>

<input type="submit" onclick="demo();" value="提交" />


</body>


</html>



